package com.antoco.operation.bigscreen.model.dto;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="PipeHealthTjDTO")
public class PipeHealthTjDTO {

    @NotNull(message = "异常总数不能为空")
    @Min(value = 0, message = "异常总数必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "异常总数必须是整数")
    @ApiModelProperty(value = "异常总数", example="10")
    private String exceptionNum;

    @NotNull(message = "淤积数不能为空")
    @Min(value = 0, message = "淤积数必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "淤积数必须是整数")
    @ApiModelProperty(value = "淤积数", example="10")
    private String yujiNum;

    @NotNull(message = "破损数不能为空")
    @Min(value = 0, message = "破损数必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "破损数必须是整数")
    @ApiModelProperty(value = "破损数", example="10")
    private String posunNum;

    @NotNull(message = "错位数不能为空")
    @Min(value = 0, message = "错位数必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "错位数必须是整数")
    @ApiModelProperty(value = "错位数", example="10")
    private String cuoweiNum;

    @NotNull(message = "堵塞数不能为空")
    @Min(value = 0, message = "堵塞数必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "堵塞数必须是整数")
    @ApiModelProperty(value = "堵塞数", example="10")
    private String duseNum;

    @NotNull(message = "正常数占比不能为空")
    @Min(value = 0, message = "正常数占比必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "正常数占比必须是整数")
    @ApiModelProperty(value = "正常数占比", example="20")
    private String normalZb;

    @NotNull(message = "预警数占比不能为空")
    @Min(value = 0, message = "预警数占比必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "预警数占比必须是整数")
    @ApiModelProperty(value = "预警数占比", example="20")
    private String alarmZb;

    @NotNull(message = "告警数占比不能为空")
    @Min(value = 0, message = "告警数占比必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "告警数占比必须是整数")
    @ApiModelProperty(value = "告警数占比", example="20")
    private String warnZb;
}